package com.utcook.host.fragmentdialog

import androidx.databinding.ObservableInt

class MainViewModel {
    
    // 当前选中的标签页索引 (0: 菜谱, 1: 调料, 2: 设置)
    val selectedTabIndex = ObservableInt(0)
    
    fun showRecipe() {
        selectedTabIndex.set(0)
    }
    
    fun showIngredients() {
        selectedTabIndex.set(1)
    }
    
    fun showSettings() {
        selectedTabIndex.set(2)
    }
} 